{% extends "base_unicol.html" %}
{% load tagging_tags %}
{% load comments.comments %}

{% block content %}
<h1>{{ post.title }}</h1>
{{ post.summary_html }}
<hr/>
{{ post.content_html }}

{% tags_for_object post as tag_list %}
{% for tag in tag_list %}
    <a href="/{{ tag }}/" title="">{{ tag.name }}</a>
{% endfor %}

<a href="/{{ post.publication_date|date:"Y" }}/{{ post.publication_date|date:"m" }}/" title="">{{ post.publication_date|date:"F Y"|lower }}</a>

{% get_free_comment_list for journal.post post.id as comment_list %}

<h2 id="comments">Comments</h2>
{% for comment in comment_list %}
	<div class="comment_{% cycle odd,even %}" id="c{{ comment.id }}">
		<span class="comnum"><a id="c{{ comment.id }}" href="#c{{ comment.id }}">#{{ forloop.counter }}</a></span>
		<p><b>{{ comment.person_name|escape }}</b> commented, on {{ comment.submit_date|date:"j F Y" }} at {{ comment.submit_date|date:"P" }}:</p>
		{{ comment.comment }}
	</div>
{% endfor %}

<h2>Post a comment</h2>
{% free_comment_form for journal.post post.id %}

{% endblock %}